permissionToOp

@Nullable
open fun permissionToOp(@NonNull permission: @NonNull String): @Nullable String(source)

Gets the app op name associated with a given permission.

Compatibility

  • On API 22 and lower, this method always returns null

Return

The app op associated with the permission or null.

Parameters

permission

The permission.